<include file="Public:pageheader" />
<script>
function check(){
		var lee = document.getElementById("lee");
		var id = document.getElementById("lee").value;
		alert(id);
		if(lee.checked == true){
			window.location.href="__URL__/feedUpdate/id/"+id;
		}
	}
</script>
<div class="content-box">
	<div class="content-box-header">
	<h3>查看客户信息</h3>
	<div class="clear"></div>
	</div>
	<div class="content-box-content">
			<fieldset>
			<p>
			<!--<label>*{%type}:</label>-->
			<input class="text-input small-input" type="hidden" name="type_id" value="1"/>
			</p>
			<p>
			<label>*{%name}：</label>
			<input class="text-input small-input" type="text" name="name" value="{$vo.name}"/>
			
			<label>*{%grade}：</label>
			<input class="text-input small-input" type="text" name="grade" value="{$vo.grade}"/>
			</p>
			<p>
			<label>*{%sex}：</label>
			<input type="text" value="<if condition='$vo.sex eq 0'>女<else/>男</if>" name="sex" />
			
			<label>*{%identity_id}：</label>
			<input class="text-input small-input" type="text" name="identity_id" value="{$vo.identity_id}"/>
			</p>
			<p>
			<label>*{%age}：</label>
			<input class="text-input small-input" type="text" name="age" value="{$vo.age}"/>
			
			<label>*{%address}:</label>
			<input class="text-input small-input" type="text" name="province" value="{$vo.province}"/>省
			<input class="text-input small-input" type="text" name="city" value="{$vo.city}"/>市
			<input class="text-input small-input" type="text" name="area" value="{$vo.area}"/>区
			<input class="text-input small-input" type="text" name="address" value="{$vo.address}"/>	
			</p>
			<p>
			<label>{%phone}:</label>
			<input class="text-input small-input" type="text" name="phone" value="{$vo.phone}"/>	
			
			<label>*{%telephone}：</label>
			<input class="text-input small-input" type="text" name="telephone" value="{$vo.telephone}"/>
			</p>
			<p>
			<label>*{%company}：</label>
			<input class="text-input small-input" type="text" name="company" value="{$vo.company}"/>
			
			<label>{%work}:</label>
			<input class="text-input small-input" type="text" name="job" value="{$vo.job}"/>
			</p>
			<p>
			<label>{%education}:</label>
			<input class="text-input small-input" type="text" name="education" value="{$vo.education}"/>
			
			<label>{%email}：</label>
			<input class="text-input small-input" type="text" name="email" value="{$vo.email}"/>
			</p>
			<p>
			<label>*{%fax}：</label>
			<input class="text-input small-input" type="text" name="fax" value="{$vo.fax}"/>
			
			<label>*{%other}：</label>
			<input class="text-input small-input" type="text" name="other" value="{$vo.other}"/>
			</p>
			<p>
			<label>*{%remark}：</label>
			<textarea name="remark">{$vo.remark}</textarea>
			</p>
			<p>
			相关申请/销售记录
			<table>
				<tr>
					<td width="16%">申请/销售单号</td>
					<td width="16%">类型</td>
					<td width="16%">提交日期</td>
					<td width="16%">经办业务员</td>
					<td width="16%">申请人/主办人</td>
					<td width="16%"></td>
				</tr>
				<volist name="bk" id="bookrequest">
				<tr>
					<td>{$bookrequest.id}</td>
					<td>预订单</td>
					<td><if condition="$bookrequest.create_time neq null">{$bookrequest.create_time|date="Y-m-d",###}</if></td>
					<td>{$bookrequest.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button"  class="button" value="单据详细信息" onclick="javascript:window.location.href='__APP__/GeneralCustomer/bookRequest/id/{$bookrequest.id}'"/></td>
				</tr>
				</volist>
				<tr>
					<td>{$gt.id}</td>
					<td>墓地退够单</td>
					<td><if condition="$gt.create_time neq null">{$gt.create_time|date="Y-m-d",###}</if></td>
					<td>{$gt.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button"  class="button" value="单据详细信息" onclick="javascript:window.location.href='__APP__/GeneralCustomer/graveReturn/id/{$gt.id}'"/></td>
				</tr>
				<tr>
					<td>{$sa.id}</td>
					<td>墓地销售单</td>
					<td><if condition="$sa.create_time neq null">{$sa.create_time|date="Y-m-d",###}</if></td>
					<td>{$sa.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button"  class="button" value="单据详细信息" onclick="javascript:window.location.href='__APP__/GeneralCustomer/graveSale/id/{$sa.id}'"/></td>
				</tr>
				<tr>
					<td>{$un.id}</td>
					<td>墓地退定申请单</td>
					<td><if condition="$un.create_time neq null">{$un.create_time|date="Y-m-d",###}</if></td>
					<td>{$un.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button" class="button"  value="单据详细信息" onclick="javascript:window.location.href='__APP__/GeneralCustomer/unbook/id/{$un.id}'"/></td>
				</tr>
				<tr>
					<td>{$pm.id}</td>
					<td>付款/退款申请单</td>
					<td><if condition="$pm.create_time neq null">{$pm.create_time|date="Y-m-d",###}</if></td>
					<td>{$pm.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button" value="单据详细信息" class="button" onclick="javascript:window.location.href='__APP__/GeneralCustomer/payment/id/{$pm.id}'"/></td>
				</tr>
				<volist name="re" id="reserverequest">
				<tr>
				
					<td>{$reserverequest.id}</td>
					<td>预留单</td>
					<td><if condition="$reserverequest.create_time neq null">{$reserverequest.create_time|date="Y-m-d",###}</if></td>
					<td>{$reserverequest.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button" value="单据详细信息" class="button" onclick="javascript:window.location.href='__APP__/GeneralCustomer/reserve/id/{$reserverequest.id}'"/></td>
				</tr>
				</volist>
				<volist name="cg" id="choosegrave">
				<tr>
				
					<td>{$choosegrave.id}</td>{$cg.id}
					<td>选址单</td>
					<td><if condition="$choosegrave.create_time neq null">{$choosegrave.create_time|date="Y-m-d",###}</if></td>
					<td>{$choosegrave.creater_name}</td>
					<td>{$vo.name}</td>
					<td><input type="button" value="单据详细信息" class="button" onclick="javascript:window.location.href='__APP__/GeneralCustomer/choosegrave/id/{$choosegrave.id}'"/></td>
				</tr>
				</volist>
			</table>
			</p>
			<p>
			相关联系记录
			<table>
				<tr>
					<td width="30%">联系日期</td>
					<td width="30%">经办人</td>
					<td width="30%">联系内容</td>
				</tr>
				<volist name="con" id="list">
				<tr>
					
					<td>{$list.condate|date="Y-m-d",###}</td>
					<td>{$list.creater_name}</td>
					<td>{$list.info}</td>

				</tr>
				</volist>
			</table>
			</p>
			<p>
				<form method="post" action="__URL__/contactAdd">
					<textarea name="info"></textarea>
					<input type="hidden" name="charger_person_id" value="{$vo.id}"/>
					<input type="submit" value="客户联系记录"/>
				</form>
			</p>
			<p>
			投诉与意见
			<table>
				<tr>
					<td width="20%">投诉日期</td>
					<td width="20%">经办人</td>
					<td width="20%">投诉内容</td>
					<td width="20%">处理结果</td>
					<td width="20%">添加/修改处理结果</td>
				</tr>
				<volist name="fb" id="bf">
				<tr>
					<td>{$bf.create_time|date="Y-m-d",###}</td>
					<td>{$bf.creater_name}</td>
					<td>{$bf.info}</td>
					<td>{$bf.result}</td>
					<td><a href="__URL__/feedpage/id/{$bf.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a></td>
				</tr>
				</volist>
			</table>
			</p>
			<p>
				<form method="post" action="__URL__/feedAdd">
					<textarea name="info"></textarea>
					<input type="hidden" name="charge_person_id" value="{$vo.id}"/>
					<input type="submit" value="客户投诉处理记录" class="button"/>
				</form>
			</p>
		
			<p>
				
				<a href="__URL__/edit/id/{$vo.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>	 	 	 	 	 	 	
<input class="button" type="button" value="返回到列表" onclick="javascript:window.location='__URL__/index/'"/>
			</p>
			</fieldset>
	</div>
</div>
<include file="Public:footer" />

